package com.jpa.dao.impl;

import com.jpa.dao.PersonCustomDao;
import com.jpa.entity.Person;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2017/8/23
 */
public class PersonRepositoryDaoImpl implements PersonCustomDao {

    @PersistenceContext
    private EntityManager entityManager;

    public void test() {
        Person person = entityManager.find(Person.class, 5);
        System.out.println("--->" + person);
    }
}
